package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户优惠券记录:记录优惠券发放/领取记录
对象 super_coupon_receive
 * 
 * @author ruoyi
 * @date 2025-08-13
 */
public class SuperCouponReceive extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID,自增 */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 优惠券ID */
    @Excel(name = "优惠券ID")
    private Long couponId;

    /** 使用状态(0未用,1已用) */
    @Excel(name = "使用状态(0未用,1已用)")
    private Long status;

    /** 领取时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "领取时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date obtainedAt;

    /** 使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "使用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date usedAt;

    /** 删除标志(0存在) */
    @Excel(name = "删除标志(0存在)")
    private Long del;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setCouponId(Long couponId) 
    {
        this.couponId = couponId;
    }

    public Long getCouponId() 
    {
        return couponId;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setObtainedAt(Date obtainedAt) 
    {
        this.obtainedAt = obtainedAt;
    }

    public Date getObtainedAt() 
    {
        return obtainedAt;
    }

    public void setUsedAt(Date usedAt) 
    {
        this.usedAt = usedAt;
    }

    public Date getUsedAt() 
    {
        return usedAt;
    }

    public void setDel(Long del) 
    {
        this.del = del;
    }

    public Long getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("couponId", getCouponId())
            .append("status", getStatus())
            .append("obtainedAt", getObtainedAt())
            .append("usedAt", getUsedAt())
            .append("del", getDel())
            .toString();
    }
}
